﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ZilLion.Service.Core.CRMUnities.Config
{
    public class ConfigurationManager
    {
        static ConfigurationManager()
        {
            AppSettings = new Dictionary<string, string>();
            ConnectionStrings = new Dictionary<string, string>();
        }

        public static void SetAppSettings(string AppSettingItem,string AppSettingValue)
        {
            if(!AppSettings.ContainsKey(AppSettingItem))
            {
                AppSettings.Add(AppSettingItem, AppSettingValue);
            }
        }

        public static void SetConnectionStrings(string ConnectionStringItem, string ConnectionStringValue)
        {
            if (!ConnectionStrings.ContainsKey(ConnectionStringItem))
            {
                ConnectionStrings.Add(ConnectionStringItem, ConnectionStringValue);
            }
        }

        public static Dictionary<string,string> AppSettings { get; set; }

        public static Dictionary<string, string> ConnectionStrings { get; set; }

        

    }
}
